home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / trans / tblt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-25  |  1.5 KB  |  50 lines

  1. /*----------------------------------------------------------------------------*\
  2. |   transparent bitmap and DIB routines.
  3. |
  4. |   these functions take advantage of the display driver, if it supports
  5. |   transparent operations.
  6. |
  7. \*----------------------------------------------------------------------------*/
  8.  
  9. //
  10. // MaskBlt
  11. //
  12. // use this for a true mask blt
  13. //
  14. extern void TrueMaskBlt (HDC hdcD,int x,int y,int dx,int dy,HDC hdcS,HDC hdcMask,int x0,int y0);
  15.  
  16. //
  17. // TransMaskBlt
  18. //
  19. // use this for a mask blt where the source (hdcS) has black (ie 0)
  20. // every where the mask has white (ie 1)
  21. //
  22. extern void TransMaskBlt (HDC hdcD,int x,int y,int dx,int dy,HDC hdcS,HDC hdcMask,int x0,int y0);
  23.  
  24. //
  25. // MakeMonoMask
  26. //
  27. // builds a transparent mask that you can use to draw (using TransMaskBlt)
  28. // the given bitmap causing the given color to be transparent
  29. //
  30. extern HBITMAP MakeTransMask(HBITMAP hbm, HPALETTE hpal, COLORREF rgb);
  31.  
  32. //
  33. // TransBlt
  34. //
  35. // Transparent bitblt that uses the current
  36. // background color of the DC as the transparent color.
  37. //
  38. extern BOOL TransBlt(HDC hdcD,int x,int y,int dx,int dy,HDC hdcS,int x0,int y0);
  39.  
  40. //
  41. // TransStretchDIBits
  42. //
  43. // draw a DIB bitmap treating the background color of the DC as transparent
  44. //
  45. extern int TransStretchDIBits(HDC hdc,
  46.                        WORD DstX, WORD DstY, WORD DstDX, WORD DstDY,
  47.                        WORD SrcX, WORD SrcY, WORD SrcDX, WORD SrcDY,
  48.                        LPVOID lpBits, LPBITMAPINFO lpbi,
  49.                WORD wUsage, DWORD rop);
  50.